package com.zhongkeruan.product;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author yangyao
 * @Description: 商品微服务
 * @date 2019/1/12 13:10
 */
@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients
@EnableHystrix
@EnableTransactionManagement
public class ProductApplication {
    private static Logger logger = LoggerFactory.getLogger(ProductApplication.class);
    public static void main(String[] args) {
        SpringApplication.run(ProductApplication.class,args);
        logger.info("「「「「商品微服务启动成功」」」」」");
    }
}
